package com.bestdreamer.thread_stream;

import java.io.PipedInputStream;

public class Demo1ThreadRead extends Thread {

    private final Demo1ReadData read;
    private final PipedInputStream input;

    public Demo1ThreadRead(Demo1ReadData read, PipedInputStream input){
        super();
        this.read = read;
        this.input = input;
    }

    @Override
    public void run() {
        read.readMethod(input);
    }
}
